package com.csxy.lsh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients
@EnableCaching
@MapperScan("com.csxy.lsh.mapper")
@SpringBootApplication
public class EduApplication {
    public static void main(String[] args) {
        org.springframework.context.ApplicationContext ctx = org.springframework.boot.SpringApplication.run(EduApplication.class, args);
        String[] beans = ctx.getBeanNamesForType(org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.class);
        for (String bean : beans) {
            System.out.println("RequestMappingHandlerMapping bean: " + bean);
            org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping mapping = (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping) ctx.getBean(bean);
            mapping.getHandlerMethods().forEach((k, v) -> System.out.println(k));
        }
    }
}
